//
//  AppDelegate.swift
//  SinaWeibo
//
//  Created by Minghe on 11/6/15.
//  Copyright © 2015 Stanford swift. All rights reserved.
//

import UIKit

@UIApplicationMain
class AppDelegate: UIResponder, UIApplicationDelegate {

    var window: UIWindow?


    func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool {

        UITabBar.appearance().tintColor = UIColor.orangeColor()
        
        /* 代码的方式加载
        
        // 1.创建window
        window = UIWindow(frame: UIScreen.mainScreen().bounds)
        window?.backgroundColor = UIColor.whiteColor()
        // 2.设置根控制器
        window?.rootViewController = MainViewController()
        // 3.显示window
        window?.makeKeyAndVisible()
        */
        
        return true
    }

 
    
    
    
    

}

/*
自定义LOG的目的:
在开发阶段自动显示LOG
在发布阶段自动屏蔽LOG

print(__FUNCTION__)  // 打印所在的方法
print(__LINE__)     // 打印所在的行
print(__FILE__)     // 打印所在文件的路径

方法名称[行数]: 输出内容
*/

func MHzLog<T>(message: T, method: String = __FUNCTION__, line: Int = __LINE__)
{
    #if DEBUG
    print("\(method)[\(line)]:\(message)")
    #endif
}
































